<?php
  $yhendus=new mysqli("localhost", "if13", "ifikad", "if13_sarkkr");
  $kask=$yhendus->prepare("select id, kassinimi, toon from kassid");
  $kask->bind_result($id, $kassinimi, $toon);
  $kask->execute();
?>
<!doctype html>
<html>
  <head>
    <title>Klassileht</title>
  </head>
  <body>
    <?php
	  while($kask->fetch()){
	    echo "<h2 style='color: $toon'>$kassinimi</h2>";
		}
		$yhendus->close();
		?>
  </body>
</html>